export default class Role {
    static insertObj ({name = null, menuName = null, menuIndex = null, permission_ids = null}) {
        if(name !== null){
            return {
                name,
                menuName,
                menuIndex,
                permission_ids
            }
        }else {
            return false
        }
    }

    static deleteObj ({id = null}) {
        if(id !== null){
            return {
                id
            }
        }else {
            return false
        }
    }

    static updateObj ({id = null, name = null, menuName = null, menuIndex = null, permission_ids = null}) {
        if(id !== null){
            return {
                id,
                name,
                menuName,
                menuIndex,
                permission_ids
            }
        }else {
            return false
        }
    }
}